﻿$(function() {
    $.template("news", '<li id="${ID}" class="newsbox">  \
                            <div class="title"><span>${DataPubblicazione}</span> - <b>${Titolo}</b></div>  \
                            <div class="body">${Testo} [...] \
                                <a href="/GUI/DettaglioNews.aspx?id=${ID}" target="_blank">Leggi tutto</a> \
                            </div>  \
                            <div class="clear" />\
                        </li>');

    $.template("annuncio", '<li id="${ID}" class="img-box">  \
                               <div class="wrap"> \
                                    <img src="/BLL/hndImage.ashx?adID=${ID}&id=999&h=100" /> \
                               </div> \
                               <h5>${Titolo} <span class="rif mini">[RIF: ${Riferimento}]</span></h5> \
                               <span class="city">${Comune}</span> \
                               <p>${Descrizione} [...]</p> \
                               <b><span class="price" title="Prezzo">${$item.formatPrice(Prezzo)}</span></b> | \
                               <span class="details" title="Superficie">${MQ} mq.</span> | \
                               <span class="details" title="Locali">${Vani} vani</span> \
                               <a href="/GUI/DettaglioAnnuncio.aspx?id=${ID}" target="_blank">Leggi tutto</a> \
                               <div class="clear" />\
                            </li>');
});